package com.cubeofnine.sugar.service.element;

import java.util.List;
import java.util.Vector;

public class ModuleFields {
	private String moduleName = "";
	private List<Field> moduleFieldList = new Vector<Field>();
	private ErrorValue error = new ErrorValue();

	public ModuleFields() {

	}

	public ModuleFields(String moduleName, List<Field> moduleFieldList,
			ErrorValue error) {
		this.moduleName = moduleName;
		this.moduleFieldList = moduleFieldList;
		this.error = error;
	}

	public String getModuleName() {
		return moduleName;
	}

	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}

	public List<Field> getModuleFieldList() {
		return moduleFieldList;
	}

	public void setModuleFieldList(List<Field> moduleFieldList) {
		this.moduleFieldList = moduleFieldList;
	}

	public void addModuleField(Field value) {
		moduleFieldList.add(value);
	}

	public ErrorValue getError() {
		return error;
	}

	public void setError(ErrorValue error) {
		this.error = error;
	}

	@Override
	public String toString() {
		return "ModuleFields [moduleName=" + moduleName + ", moduleFieldList="
				+ moduleFieldList + ", error=" + error + "]";
	}

}
